<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>hello json</title>
</head>
<body>
   <h2>JavaScript 中 创建 JSON 对象</h2>
    <p>
        网站名称:<span id="jname"></span><br/>
        网站地址:<span id="jurl"></span><br/>
        网站 slogan:<span id="jslogan"></span><br/>
    </p>
    <script>
    var JSONObject ={
        "name":"黑马程序员",
        "url":"www.heima.com",
        "slogan":"为爱成就每位学生！"
    };
    document.getElementById("jname").innerHTML = JSONObject.name;
    document.getElementById("jurl").innerHTML = JSONObject.url;
    document.getElementById("jslogan").innerHTML = JSONObject.slogan
    </script>
</body>
</html>